package org.zxw.service;

import org.zxw.pojo.entity.TrainingPlan;

import java.util.List;

public interface TrainingPlanService {

    /**
     * 根据目标推荐训练计划
     * @param goal
     * @param limit
     * @return
     */
    List<TrainingPlan> recommendByGoal(String goal, int limit);

    /**
     * 根据目标和难度推荐训练计划
     * @param goal
     * @param difficulty
     * @param limit
     * @return
     */
    List<TrainingPlan> recommendByGoalAndDifficulty(String goal, String difficulty, int limit);

    /**
     * 根据bmi和难度推荐训练计划
     * @param bmi
     * @param difficulty
     * @param limit
     * @return
     */
    List<TrainingPlan> recommendByBmi(double bmi, String difficulty, int limit);

    // 刷新缓存
    void refreshCache(String goal);
}